From: Richard M. Stallman Date: Fri, 13 May 1994 07:18:18 +0000 (+0000) Subject: (child_setup): PRIO_PROCESS renamed to SET_EMACS_PRIORITY. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~91581 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=68d10241fcf0f1bd4bc22aeb5deb9e0cf4a8e43d;p=emacs.git (child_setup): PRIO_PROCESS renamed to SET_EMACS_PRIORITY. Don't call nice if emacs_priority is positive. --- diff --git a/src/callproc.c b/src/callproc.c index b3f88e56f66..cdf8f1a67c0 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -574,11 +574,12 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir) int pid = getpid (); -#ifdef PRIO_PROCESS +#ifdef SET_EMACS_PRIORITY { extern int emacs_priority; - nice (- emacs_priority); + if (emacs_priority < 0) + nice (- emacs_priority); } #endif